<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: JCCallCallback类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_j_c_call_callback-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCCallCallback类 参考<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html">一对一通话模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_j_c_call_callback_8h_source.html">JCCallCallback.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a2188f777767ca071c145d4a50687ce63"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_call_callback.html#a2188f777767ca071c145d4a50687ce63">onCallItemAdd</a> (<a class="el" href="class_j_c_call_item.html">JCCallItem</a> *item)=0</td></tr>
<tr class="separator:a2188f777767ca071c145d4a50687ce63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fb115155d6bc25139a165310069f92b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_call_callback.html#a8fb115155d6bc25139a165310069f92b">onCallItemRemove</a> (<a class="el" href="class_j_c_call_item.html">JCCallItem</a> *item, <a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#gae957ca110a61bcd44a7fd33cda162887">JCCallReason</a> reason, const char *description)=0</td></tr>
<tr class="separator:a8fb115155d6bc25139a165310069f92b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ba1c4f09c1f573d9fe2acb5057d6c18"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_call_callback.html#a1ba1c4f09c1f573d9fe2acb5057d6c18">onCallItemUpdate</a> (<a class="el" href="class_j_c_call_item.html">JCCallItem</a> *item, <a class="el" href="class_j_c_call_item_change_param.html">JCCallItemChangeParam</a> changeParam)=0</td></tr>
<tr class="separator:a1ba1c4f09c1f573d9fe2acb5057d6c18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb8281abd54bc8c18b77aadfe234a882"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_call_callback.html#afb8281abd54bc8c18b77aadfe234a882">onMessageReceive</a> (const char *type, const char *content, <a class="el" href="class_j_c_call_item.html">JCCallItem</a> *item)=0</td></tr>
<tr class="separator:afb8281abd54bc8c18b77aadfe234a882"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e46494780a74ede3c32eac1a64c0190"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_call_callback.html#a6e46494780a74ede3c32eac1a64c0190">onMissedCallItem</a> (<a class="el" href="class_j_c_call_item.html">JCCallItem</a> *item)=0</td></tr>
<tr class="separator:a6e46494780a74ede3c32eac1a64c0190"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2bb26f070f0235e19ea4671abe83df4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_call_callback.html#ac2bb26f070f0235e19ea4671abe83df4">onDtmfReceived</a> (<a class="el" href="class_j_c_call_item.html">JCCallItem</a> *item, <a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ga78f6d8931af25ea4302fcee98ae292d7">JCCallDtmfValue</a> value)=0</td></tr>
<tr class="separator:ac2bb26f070f0235e19ea4671abe83df4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="class_j_c_call_callback.html">JCCallCallback</a> 回调，用于回调一对一通话相关事件 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a2188f777767ca071c145d4a50687ce63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2188f777767ca071c145d4a50687ce63">&#9670;&nbsp;</a></span>onCallItemAdd()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCCallCallback::onCallItemAdd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_call_item.html">JCCallItem</a> *&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>新增通话回调</p>
<p>当上层收到此回调时，可以根据 <a class="el" href="class_j_c_call_item.html">JCCallItem</a> 对象获得该通话的所有信息及状态，从而更新该通话相关UI</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_call_item.html">JCCallItem</a> 对象在回调中使用，不要保存使用 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8fb115155d6bc25139a165310069f92b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fb115155d6bc25139a165310069f92b">&#9670;&nbsp;</a></span>onCallItemRemove()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCCallCallback::onCallItemRemove </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_call_item.html">JCCallItem</a> *&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#gae957ca110a61bcd44a7fd33cda162887">JCCallReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>description</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>移除通话回调</p>
<p>当上层收到此回调时，可以根据 <a class="el" href="class_j_c_call_item.html">JCCallItem</a> 对象获得该通话的所有信息及状态，从而更新该通话相关UI</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_call_item.html">JCCallItem</a> 对象在回调中使用，不要保存使用 </td></tr>
    <tr><td class="paramname">reason</td><td>通话结束原因，参见：<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#gae957ca110a61bcd44a7fd33cda162887">JCCall 错误码</a> </td></tr>
    <tr><td class="paramname">description</td><td>通话结束原因的描述，只有被动挂断的时候，才会收到这个值，其他情况下则返回空字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1ba1c4f09c1f573d9fe2acb5057d6c18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ba1c4f09c1f573d9fe2acb5057d6c18">&#9670;&nbsp;</a></span>onCallItemUpdate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCCallCallback::onCallItemUpdate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_call_item.html">JCCallItem</a> *&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_call_item_change_param.html">JCCallItemChangeParam</a>&#160;</td>
          <td class="paramname"><em>changeParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通话状态更新回调</p>
<p>当上层收到此回调时，可以根据 <a class="el" href="class_j_c_call_item.html">JCCallItem</a> 对象获得该通话的所有信息及状态，从而更新该通话相关UI</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_call_item.html">JCCallItem</a> 对象在回调中使用，不要保存使用 </td></tr>
    <tr><td class="paramname">changeParam</td><td>更新标识类 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac2bb26f070f0235e19ea4671abe83df4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2bb26f070f0235e19ea4671abe83df4">&#9670;&nbsp;</a></span>onDtmfReceived()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCCallCallback::onDtmfReceived </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_call_item.html">JCCallItem</a> *&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ga78f6d8931af25ea4302fcee98ae292d7">JCCallDtmfValue</a>&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通话中收到DTMF回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_call_item.html">JCCallItem</a> 对象在回调中使用，不要保存使用 </td></tr>
    <tr><td class="paramname">value</td><td><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ga78f6d8931af25ea4302fcee98ae292d7">DTMF值</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="afb8281abd54bc8c18b77aadfe234a882"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb8281abd54bc8c18b77aadfe234a882">&#9670;&nbsp;</a></span>onMessageReceive()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCCallCallback::onMessageReceive </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>content</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_call_item.html">JCCallItem</a> *&#160;</td>
          <td class="paramname"><em>item</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通话中收到消息的回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>消息类型 </td></tr>
    <tr><td class="paramname">content</td><td>消息内容 </td></tr>
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_call_item.html">JCCallItem</a> 对象在回调中使用，不要保存使用 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6e46494780a74ede3c32eac1a64c0190"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e46494780a74ede3c32eac1a64c0190">&#9670;&nbsp;</a></span>onMissedCallItem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCCallCallback::onMissedCallItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_call_item.html">JCCallItem</a> *&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>上报服务器拉取的未接来电</p>
<p>有以下几种情况会收到此回调：</p><ul>
<li>用户A未登录，用户B呼叫用户A，用户A登录后收到此回调</li>
<li>用户A已登录，但没开启应用，用户A在开启应用重新登录后会收到此回调</li>
<li>已存在语音通话又收到了视频通话来电，此时会收到此回调</li>
<li>已存在视频通话又收到了语音或视频来电，此时会收到此回调</li>
<li>当前通话数量已达到最大通话数时又收到了语音或视频来电，此时会收到此回调</li>
</ul>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_call_item.html">JCCallItem</a> 对象在回调中使用，不要保存使用 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>SDK/all/include/<a class="el" href="_j_c_call_callback_8h_source.html">JCCallCallback.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
